package com.entity.userInfo;

import java.io.Serializable;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

import org.hibernate.annotations.Type;

/**
 * 
 * authod Fanzh
 * date 2012-04-17
 * */

@Entity
@Table(name = "t_personalInfo")
public class PersonalInfo implements Serializable{

	private static final long serialVersionUID = 5736957234973753880L;

	@Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
	private Integer id;
	
	private Integer userId;
	
	@Type(type="com.util.textConversion.TextConversion")
	private String hobbyDscib;
	
	@Type(type="com.util.textConversion.TextConversion")
	private String likeMusicDscib;
	
	@Type(type="com.util.textConversion.TextConversion")
	private String likeMovieDscib;
	
	@Type(type="com.util.textConversion.TextConversion")
	private String likeGameDscib;
	
	@Type(type="com.util.textConversion.TextConversion")
	private String likeCartoonDscib;
	
	@Type(type="com.util.textConversion.TextConversion")
	private String likeSportsDscib;
	
	@Type(type="com.util.textConversion.TextConversion")
	private String likeBookDscib;
	
	public PersonalInfo() {
		super();
		// TODO Auto-generated constructor stub
	}

	public PersonalInfo(Integer id, Integer userId, String hobbyDscib,
			String likeMusicDscib, String likeMovieDscib, String likeGameDscib,
			String likeCartoonDscib, String likeSportsDscib,
			String likeBookDscib) {
		super();
		this.id = id;
		this.userId = userId;
		this.hobbyDscib = hobbyDscib;
		this.likeMusicDscib = likeMusicDscib;
		this.likeMovieDscib = likeMovieDscib;
		this.likeGameDscib = likeGameDscib;
		this.likeCartoonDscib = likeCartoonDscib;
		this.likeSportsDscib = likeSportsDscib;
		this.likeBookDscib = likeBookDscib;
	}

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public Integer getUserId() {
		return userId;
	}

	public void setUserId(Integer userId) {
		this.userId = userId;
	}

	public String getHobbyDscib() {
		return hobbyDscib;
	}

	public void setHobbyDscib(String hobbyDscib) {
		this.hobbyDscib = hobbyDscib;
	}

	public String getLikeMusicDscib() {
		return likeMusicDscib;
	}

	public void setLikeMusicDscib(String likeMusicDscib) {
		this.likeMusicDscib = likeMusicDscib;
	}

	public String getLikeMovieDscib() {
		return likeMovieDscib;
	}

	public void setLikeMovieDscib(String likeMovieDscib) {
		this.likeMovieDscib = likeMovieDscib;
	}

	public String getLikeGameDscib() {
		return likeGameDscib;
	}

	public void setLikeGameDscib(String likeGameDscib) {
		this.likeGameDscib = likeGameDscib;
	}

	public String getLikeCartoonDscib() {
		return likeCartoonDscib;
	}

	public void setLikeCartoonDscib(String likeCartoonDscib) {
		this.likeCartoonDscib = likeCartoonDscib;
	}

	public String getLikeSportsDscib() {
		return likeSportsDscib;
	}

	public void setLikeSportsDscib(String likeSportsDscib) {
		this.likeSportsDscib = likeSportsDscib;
	}

	public String getLikeBookDscib() {
		return likeBookDscib;
	}

	public void setLikeBookDscib(String likeBookDscib) {
		this.likeBookDscib = likeBookDscib;
	}
	
}
